package source.view.viewobjects;

import java.awt.Graphics2D;
import java.awt.image.BufferedImage;

import source.model.type.TerrainType;
import source.view.ImageLibrary;

public class ViewTerrain extends ViewObject {
	private TerrainType tType;
	
	public ViewTerrain(TerrainType t){
		tType = t;
	}
	public void paint(Graphics2D g) {
		BufferedImage img = ImageLibrary.getTerrainImage(tType);
		if(img != null) g.drawImage(ImageLibrary.getTerrainImage(tType), null, 0,0);
		//else g.drawString(tType.toString(), 0,0);
	}
}
